package com.hcy.springcloud.service;

import com.hcy.springcloud.entities.CommonResult;
import com.hcy.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

@Component
public class PaymentFallbackService implements PaymentService {


    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(4444, "服务降级返回，-----PaymentFallbackService",
                new Payment(id, "errorSerial"));
    }
}
